//
//  MineTableViewCell.m
//  GiftItems
//
//  Created by lanou3g on 15/9/21.
//  Copyright (c) 2015年 lanou3g. All rights reserved.
//

#import "MineTableViewCell.h"

@implementation MineTableViewCell
- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier {
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        self.selectionStyle = UITableViewCellSelectionStyleNone;
        [self addSubviews];
    }
    return self;
}
- (void)addSubviews {
    // 设置图片
    self.picImgae = [[UIImageView alloc] initWithFrame:CGRectMake(15, 5, 30, 30)];
    [self.contentView addSubview:self.picImgae];
    
    // 设置标题
    self.title = [[UILabel alloc] initWithFrame:CGRectMake(60, 8, 150, 30)];
    [self.contentView addSubview:self.title];
    
    // 设置亮度开关
    self.Switch = [[UISwitch alloc] initWithFrame:CGRectMake(kWidth - 85, 5, 75, 30)];
    self.Switch.tag = 1000;
    [self.contentView addSubview:self.Switch];
    
}
// 在开关的放的中改变颜色
- (void)changeBackGroundColor {
    NSLog(@"hfasdjadsj");
}

- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    
}

@end
